/** ***********************************************************************
*  $Id: $
*
*  COPYRIGHT @2008 CSS CORP PVT LTD
*          
*  This program is free software; you can redistribute it and/or modify it under the terms of 
*  version 2 of the GNU General Public License as published by the Free Software 
*  Foundation.
*
*  The above copyright notice and this permission notice shall be included in all copies 
*  or substantial portions of the Software.
*
*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
*  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
*  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
*  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 
*  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
*  WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
*  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
*  DEALINGS IN THE SOFTWARE.
*
************************************************************************* */

package com.css.ctg.tulip.info;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 *
 *	<p>	This is used for generating the result.
 *		Here, key   - the name of the rule specified in the tulip-config.
 *        value - true - if the rule pass.
 *      	     false - if the rule fails.
 *      
 *  	The value is set by the .drl file(Rule Engine).
 *  
 *  @version $Rev:
 *  		 $
 *      	
 */
public class TulipResultInfo implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private HashMap<String, String> resultSet=new HashMap<String, String>();
	
	/**
	 * <p>	Used to store the result of the web site.
	 * 
	 * @param key
	 * @param value
	 * 
	 */
	public void setResult(String key,String value){
		resultSet.put(key, value);
	}
	
	/**
	 * <p>	Used to retrieve the result of the web site.
	 * 
	 * @return Map<String, String>
	 */
	public Map<String,String> getResult(){
		return resultSet;
	}
}
